import http from '../utils/request'
// 歌单评论
export const getCom = (id) => {
  return http.request({
    method: 'get',
    url: `/comment/playlist?id=${id}`
  })
}

// 歌曲评论
export const getmusicCom = (id, type) => {
  return http.request({
    method: 'get',
    url: `/comment/${type}?id=${id}`
  })
}

// 发表评论
export const postComments = ({ id, txt }) => {
  return http.request({
    method: 'get',
    url: `/comment?t=1&type=0&id=${id}&content=${txt}`
  })
}

